#include <iostream>
using namespace std;

int n;

int func (int m) {
    int n = 15;    //n2
    cout << "func: n= " << n << endl;    //n2
    for (int n = 1; n <= 8; n++) {    //n3
        m = m + n * n;     //n3
        cout << "n= " << n << "  m= " << m << endl;  //n3
    }
    m = m * n; //n2
    cout << "n= " << n << "  m= " << m << endl;  //n2
    return m;
}

int main() {
    n = 50;
    cout << "main: n= " << n << endl;
    n = func(n);
    cout << "func(n)= " << n << endl;
    return 0;
}